export interface FormItem {
  label: string;
  prop: string;
  //渲染的组件
  component: string | object;
  //默认展示值
  defaultValue?: string | string[];
  //表单校验规则
  rules?: object | object[];
  //组件属性
  attrs?: object;
  //切换时触发
  change?<V>(val: V, formData: Record<string, unknown>): void;
  //表单项是否显示
  isShow?(data: any): boolean;
}

export interface DialogFormItem {
  row: FormItem[];
}
